package Timesheet.util;

import java.util.ArrayList;

import Timesheet.TsApplicationResource;

public class TsCalendarList {
    private static TimesheetDbTransaction s_tsDbTran = null;
    
    public TsCalendarList() {
        super();
        if (s_tsDbTran == null) {
            s_tsDbTran = TsApplicationResource.getDbTransaction();
        }
    }
    /*
    public TsCalendar[] getCalendarList()
    { ArrayList tsCalList = new ArrayList();
        return (TsCalendar[]) tsCalList.toArray(new TsCalendar[tsCalList.size()]);
    }
    */
          
   public TsCalendar[] getAvailableCalendarList()
    { ArrayList tsCalList = new ArrayList();
      tsCalList = s_tsDbTran.selectAvailableTsCalendarListFromDb();
        return (TsCalendar[]) tsCalList.toArray(new TsCalendar[tsCalList.size()]);
    }
}
